package cn.com.main;


import cn.com.config.JasyptConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

@org.springframework.boot.autoconfigure.SpringBootApplication
@EnableAsync
@ImportAutoConfiguration(JasyptConfiguration.class)
public class SpringBootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringBootApplication.class, args);
        AsyncDemo asyncDemo = run.getBean(AsyncDemo.class);
        asyncDemo.test();
    }

}

